<%@ page import="BL.AccessDB"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Startseite Suchen</title>
</head>
<body>
	<jsp:include page="header.jsp" />
	<h1>Suchen:</h1>
	<form method=get action="Ergebnisseite.jsp">
		<table>
			<tr>
				<th>PLZ</th>
				<td><input type="text" name="plz"></input></td>
			</tr>
			<tr>
				<th>Ort</th>
				<td><input type="text" name="ort"></input></td>
			</tr>
			<tr>
				<th>Strasse/ Nr.</th>
				<td><input type="text" name="strasse"></input> <input
					type="text" name="hausnr"></input></td>
			</tr>
			<tr>
			</tr>
			<tr>
				<th>Kategorie</th>
				<td><select name="kategorie">
						<% 
						String[] kat = AccessDB.getKat();

						for ( int i = 0 ; i < kat.length ; i++  ) {
							out.println("<option>"+kat[i]+"</option>");
				
						}%>

				</select></td>
			</tr>
			<tr>
				<th>Sub-Kategorie</th>
				<td><select>
						<option>Italiener</option>
						<option>Grieche</option>
						<option>Dönerbude</option>
				</select></td>
			</tr>
		</table>
		<br> <input type="submit" value="Suchen">
	</form>
</body>
</html>